{include file="biz/biz_header.html"} 
<?php
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['ucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.core.js";
$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.widget.js";
$this->_var['cpucctojs'][] = $this->_var['TMPL_REAL']."/js/jquery.ui.datepicker.js";

$this->_var['ucctcss'][] = $this->_var['TMPL_REAL']."/css/datepicker.css";
?>

<script type="text/javascript" src="{function name="parse_script" v="$ucctojs" c="$cpucctojs"}"></script>
<link rel="stylesheet" type="text/css" href="{function name="parse_css" v="$ucctcss"}" />

{include file="biz/biz_nav.html"}
<div class="wrap clearfix wb biz-wrap">
{include file="biz/biz_info_header.html"}
	<div class="long" style="width:965px">
		<style type="text/css">
			ul.commit_list{ padding:0px 10px;}
			ul.commit_list li{ padding:10px; display:block; }
			ul.commit_list li.gray{ background:#f2f2f2;}
			.o_tip{ border:1px solid #FBA547; padding:3px; background:#FDEFA9}
		</style>
		<div class="sub_nav clearfix">
			<h3 class="modify-title f_l">
				外卖订单
			</h3>
			<span class="{if $ACTION_NAME eq 'index'}act{/if} mt5"><a href="{url x="biz" r="order"}">普通订单</a></span>
			<span class="{if $ACTION_NAME eq 'takeaway'}act{/if} mt5"><a href="{url x="biz" r="order#takeaway"}">外卖订单</a></span>
		</div>
		<div  style="padding:0 10px;">
			<form name="searchform" action="{url x="biz" r="order#takeaway"}" method="post">
			{$LANG.SUPPLIER_ORDER_SN}:<input type="text" class="f-input" name="order_sn"  size="16" value="{$order_sn}" />
			订餐时间
			<input type="text" name="begindate" id="uc_ct_begin_date" class="f-input" size="8" value="{$begindate}">
			至
			<input type="text" name="enddate" id="uc_ct_end_date" class="f-input" size="8" value="{$enddate}">
			手机号:<input type="text" class="f-input" size="10" name="order_tel" value="{$order_tel}" />
				<input type="hidden" value="1" name="is_redirect" />
				<input type="submit" value="{$LANG.SEARCH}" class="formbutton" />
			</form>
		</div>
		<div class="blank5"></div>
		<table cellspacing="0" cellpadding="0" border="0" class="data-table" style="width:965px">
			<tr>
				<th width="70">{$LANG.SUPPLIER_ORDER_SN}</th>
				<th width=70 style="text-align:center;">{$LANG.ORDER_CREATE_TIME}</th>
				<th width=75>联系人</th>
				<th width="76">联系电话</th>
				<th></th>
				<th width="76">订单状态</th>
				<th width="30">金额</th>
				<th width=24>{$LANG.VIEW}</th>
			</tr>
			{foreach from=$order_list item=order key=key}
			<tr {if $key mod 2 eq  1}class="gray"{/if}>
				<td style="text-align:left;">
					{$order.order_sn}											
				</td>
				<td class="tc">{function name="to_date" value=$order.create_time f="Y-m-d"}<br>
				{function name="to_date" value=$order.create_time f="H:i:s"}</td>
				<td>{$order.contacter} {if $order.sex eq 1}先生{else}女士{/if}</td>
				<td>{$order.tel}</td>
				<td>
					{foreach from=$order.menu item="m"}
					{$m.name}×{$m.nums}
					{/foreach}
					
					<div class="o_tip mt5 clearfix">
						{if $order.msg}备注：{$order.msg}<br>{/if}
						送餐地址：{$order.address}
					</div>
					
				</td>
				<td>
					{if $order.status eq 0}
					等待处理
					{elseif $order.status eq 1}
					下单成功
					{elseif $order.status eq 2}
					订单失败{if $order.order_tip}<a href="javascript:void(0);" title="{$order.order_tip}" class="ml5 icons i005"></a>{/if}
					{/if}
				</td>
				<td>{function name="format_price" value=$order.total_price}</td>
				<td>
					<a href="{url x="biz"  r="order#tview" p="id=$order.id"}">{$LANG.VIEW}</a>
				</td>
			</tr>
			{/foreach}
	</table>
	</div>
	<div class="blank"></div>
	<div class="pages">{$pages}</div>
	<div class="blank"></div>
</div><!--end biz_index_box-->

</div>
<script type="text/javascript">
	$("#uc_ct_begin_date").datepicker({
		dateFormat: 'yy-mm-dd'
	});
	$("#uc_ct_end_date").datepicker({
		dateFormat: 'yy-mm-dd'
	});
</script>
{include file="biz/biz_footer.html"} 